package com.krui.iweibo.model;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;

/**
 * 用户实体
 * @author krui
 *
 */
public class UserInfo {

	private int id;
	private String userId;
	private String userName;
	private String token;
	private String tokenSecret;
	private String isDefault;
	private Bitmap userIcon;
	private String loginTime;

	
	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public UserInfo() {
		
	}
	
	public UserInfo(String userId,String userName,String token,String tokenSecret,String isDefault) {
		this.userId = userId;
		this.token = token;
		this.tokenSecret = tokenSecret;
		this.userName = userName;
		this.isDefault = isDefault;
	}
	
	
	public UserInfo(String userId, String userName, String token,
			String tokenSecret, String isDefault, Bitmap userIcon,
			String loginTime) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.token = token;
		this.tokenSecret = tokenSecret;
		this.isDefault = isDefault;
		this.userIcon = userIcon;
		this.loginTime = loginTime;
	}

	
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTokenSecret() {
		return tokenSecret;
	}

	public void setTokenSecret(String tokenSecret) {
		this.tokenSecret = tokenSecret;
	}

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

	public Bitmap getUserIcon() {
		return userIcon;
	}

	public void setUserIcon(Bitmap userIcon) {
		this.userIcon = userIcon;
	}

	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "userId = " + userId + ",userName = " + userName + ",token = " + token + "tokenSecert = " + tokenSecret;
	}
}
